<!-- 工单分析页面 -->
<template>
  <div>
      <eChart ref='refEchart'/>
  </div>
</template>

<script>
import eChart from '@/plugin/eChart/barChart.vue'
import req from '@/api/index'

export default {
  data() {
      return {
      }
  },
mounted() {
  const moduleNames = this.getFormData().data
  const seriesData = this.getSeriesData().data
  this.$refs.refEchart.initChart(moduleNames, seriesData)
},

components: {
  eChart
},

computed: {},

methods: {
  async getFormData() {
    return await req('getModuleNames')
  },
  async getSeriesData() {
    return await req('getSeriesData')
  },
}
}

</script>
<style lang='less' scoped>
</style>